const express = require('express');
const orderRouter = express.Router();
const SQLQuery = require('../utils/query.js');

orderRouter.post('/mini/getOrderList', async function (req, res) {
    try {
        let queryObj = req.body;
        var sql = `select * wx_order where uid = ${queryObj.uid}`;
        let result = await SQLQuery.query(sql)
        res.send(global.common.resJson(0, 'success', result[0]))
    } catch (err) {
        res.send(err)
    }
})



module.exports = orderRouter;